import numpy as np
# 对于空矩阵的
Z = np.diag([1,2,3,4], k=-1)
print(Z)

'''
# 对于特定矩阵？？？？
Z = np.array([[10, 34, 54, 23, 54],\
              [0, 87, 53, 68, 11],\
              [98, 0, 25, 11, 23],\
              [0, 0, 0, 0, 0],\
              [84, 32, 12, 0, 56]])
'''

